package com.ffcs.web.model.entity;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TucaoAnswer entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_tucao_answer")
public class TucaoAnswer implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer tucaoId;
	private Date answerDate;
	private String answerMan;
	private String answerContent;
	private Integer userId;

	// Constructors

	/** default constructor */
	public TucaoAnswer() {
	}

	/** minimal constructor */
	public TucaoAnswer(Integer tucaoId, Date answerDate, String answerMan,
			Integer userId) {
		this.tucaoId = tucaoId;
		this.answerDate = answerDate;
		this.answerMan = answerMan;
		this.userId = userId;
	}

	/** full constructor */
	public TucaoAnswer(Integer tucaoId, Date answerDate, String answerMan,
			String answerContent, Integer userId) {
		this.tucaoId = tucaoId;
		this.answerDate = answerDate;
		this.answerMan = answerMan;
		this.answerContent = answerContent;
		this.userId = userId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "tucaoId", nullable = false)
	public Integer getTucaoId() {
		return this.tucaoId;
	}

	public void setTucaoId(Integer tucaoId) {
		this.tucaoId = tucaoId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "answerDate", nullable = false, length = 19)
	public Date getAnswerDate() {
		return this.answerDate;
	}

	public void setAnswerDate(Date answerDate) {
		this.answerDate = answerDate;
	}

	@Column(name = "answerMan", nullable = false)
	public String getAnswerMan() {
		return this.answerMan;
	}

	public void setAnswerMan(String answerMan) {
		this.answerMan = answerMan;
	}

	@Column(name = "answerContent", length = 2000)
	public String getAnswerContent() {
		return this.answerContent;
	}

	public void setAnswerContent(String answerContent) {
		this.answerContent = answerContent;
	}

	@Column(name = "userId", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

}